﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NCT.MRS.DataAccessLayer.Entities
{
    public class TestType : IEntity
    {
        public TestType()
        {
            IsActive = true;
            ChildTestTypes = new List<TestType>();
            TestPackages = new List<TestPackage>();
            TestTypeResults = new List<TestTypeResult>();
        }

        public int Id { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public string NormalResult { get; set; }
        public decimal Price { get; set; }
        public bool IsActive { get; set; }
        public DateTime DateAdded { get; set; }
        public DateTime DateModified { get; set; }
        public int ModifiedByUserId { get; set; }
        public virtual User ModifiedByUser { get; set; }
        public int SectionId { get; set; }
        public virtual TestTypeSection Section { get; set; }
        public int? ParentTestId { get; set; }
        public virtual TestType ParentTestType { get; set; }
        public virtual List<TestType> ChildTestTypes { get; set; }
        public virtual List<TestPackage> TestPackages { get; set; }
        public virtual List<TestTypeResult> TestTypeResults { get; set; }

    }
}
